<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        <i class="fa fa-tachometer" aria-hidden="true"></i> 亚马逊订单
      </h1>
    </section>
    
    <section class="content">
    	<table class="table table-striped table-hover table-bordered table-condensed" style="max-width: 600px;">
    		<thead>
    			<tr>
    				<th>订单编号</th>
    				<th>订单名称</th>
    				<th>关联产品数</th>
    				<th>创建人</th>
    				<th>备注</th>
    				<th>操作</th>
    			</tr>
    		</thead>
    		<tbody>
    			<?php
    			foreach ($orders as $key => $order) {
    			?>
    			<tr>
    				<td><?=$order->id?></td>
    				<td><?=$order->order_name?></td>
    				<td><?=$order->details_count?></td>
    				<td><?=$order->createdBy?></td>
    				<td><?=$order->remark?></td>
    				<td>
    					<a href="/amazonOrder/detail/<?=$order->id?>">查看</a>
    				</td>
    			</tr>
    			<?php	
    			}
    			?>
    			
    		</tbody>
    	</table>
    </section>
 </div>